package com.zretc.dao;

import com.zretc.entity.Order;
import com.zretc.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface OrderMapper {
    List<Order> getOrdersByParams(Map<String, Object> params);
    List<OrderDetail> getOrderDetailsByParams(Map<String, Object> params);

    List<Map<String, Object>> getStatistics(Map<String, Object> params);
    List<Map<String, Object>> getCountGroupByCommentScore(Map<String, Object> params);
    List<Map<String, Object>> getSumGroupByTypeName(Map<String, Object> params);
    List<Map<String, Object>> getSumGroupByProductName(Map<String, Object> params);
    List<Map<String, Object>> getTotalTurnoverBySellerAccount(Map<String, Object> params);
    List<Map<String, Object>> getSumGroupByProductId(Map<String, Object> params);
}
